﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;
using DAL.Entities;


namespace BAL
{
    public class PublicarBAL
    {
        public PublicarBAL() { }


        public List<PublicarEntityRes> GetGrouponAPublicarByProveedor(PublicarEntityReq pro)
        {
            PublicarDAL proxy = new PublicarDAL();
            return proxy.GetGrouponAPublicarByProveedor(pro);
        }
        public List<PublicarEntityRes> GetGrouponAPublicar(PublicarEntityReq pro)
        {
            try
            {
                PublicarDAL proxy = new PublicarDAL();
                return proxy.GetGrouponAPublicar(pro);

            }
            catch (Exception ex)
            {
                throw ex;
            }
        }


        public bool PublicarGrupon(PublicarEntityRes gru)
        {
            try
            {
                PublicarDAL proxy = new PublicarDAL();
                return proxy.PublicarGrupon(gru);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

        }
    }

